﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Orchard.ContentManagement;

namespace DreamStore.WebShop.Models
{
    public class PayPalApiSettingsPart : ContentPart<PayPalApiSettingsPartRecord>
    {
        [Required]
        [DisplayName("API Domain")]
        public string ApiDomain
        {
            get { return Record.ApiDomain; }
            set { Record.ApiDomain = value; }
        }

        [Required]
        [DisplayName("CGI Domain")]
        public string CgiDomain
        {
            get { return Record.CgiDomain; }
            set { Record.CgiDomain = value; }
        }

        [Required]
        [DisplayName("Username")]
        public string Username
        {
            get { return Record.Username; }
            set { Record.Username = value; }
        }

        [Required]
        [DisplayName("Password")]
        public string Password
        {
            get { return Record.Password; }
            set { Record.Password = value; }
        }

        [Required]
        [DisplayName("Signature")]
        public string Signature
        {
            get { return Record.Signature; }
            set { Record.Signature = value; }
        }   
    }
}